package com.yunhe.policyfulfillment.policyful.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName PolicyInfoMatterQueryCondition
 * @Description TODO
 * @Author HeTao
 * @Date 2021/7/26 15:11
 * @Version 1.0
 **/
@Data
@ApiModel(value = "PolicyInfoMatterQueryCondition",description = "事项查询条件")
public class PolicyInfoMatterQueryCondition implements Serializable {


    @ApiModelProperty(value = "标题",required = false)
    private String title;

    @ApiModelProperty(value = "发布人",required = false)
    private Long publishPerson;

    @ApiModelProperty(value = "发布部门",required = false)
    private Integer orgId;

    @ApiModelProperty("申报状态 01 未开始 02 申报中 03 已截止")
    private String matterStatus;

    @ApiModelProperty(value = "发布开始时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String publishStartTime;

    @ApiModelProperty(value = "发布结束时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String publishEndTime;

    @ApiModelProperty(value = "有效期限开始时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd" )
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String declareStartTime;

    @ApiModelProperty(value = "有效期限结束时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd" )
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String declareEndTime;

    @ApiModelProperty(value = "是否上线",required = false)
    private String isOnline;

    @ApiModelProperty(value = "申报对象",required = false)
    private String declarationObject;

    @ApiModelProperty(value = "申报方式",required = false)
    private String declarationMethod;

    @ApiModelProperty(value = "当前页",required = true)
    private int page;

    @ApiModelProperty(value = "页面条数",required = true)
    private int size;

}
